<div class="pbd order-paid">
    <div class="m-order-info wrap-box">
		<div class="m-info-row">
			<div class="m-flexbox">
				<div class="m-order-number m-flexgrow"><i class="icon-orderno"></i> <span class="svalue"><%= orderNo %></div>
				 <% voucherData.forEach(function(item,index){ %>	
					  <% if(orderBackStatus==1&&item.voucherBackStatus==1 && index==0) { %>
						   <div class="order-opt-btn"><button type="button" class="btn btn-min" data-href="./index.php?r=order/back&vouid=<%= item.voucherid %>&ocid=<%= ocId %>" node-name="torefund">退订</button></div>      
					 <% } %>
				  <% }) %>  
			</div>
			<div class="hr"></div>
			<% voucherData.forEach(function(item){ %>
				<div class="m-proof-item">
					<div class="m-flexbox"><div class="m-title m-flexgrow"><%= item.goodsname %></div><div class="m-price"><sub>¥</sub><strong class="price"><%= item.channelsaleprice %></strong><br /><span class="number">×<%= item.goodsnum %></span></div></div>
				</div>
			<% }) %>

			<div class="m-ticket-person">
				<% voucherData.forEach(function(item){ %>
				<div class="m-srow"><span class="label">有效期</span> <span class="item-feild-text"><%= item.validstartdateFormat.replace(/-/g,".") %>-<%= item.validenddateFormat.replace(/-/g,".") %></span></div>
				<% }) %>
				<div class="m-srow"><span class="label">手机号码</span> <span class="item-feild-text"><%= phone %></span></div>
				<% if (idCard) { %>
				<div class="m-srow"><span class="label">身份证号</span> <span class="item-feild-text"><%= idCard %></span></div>
				<% } %>
			</div>
			<div class="hr"></div>
			<div class="m-flexbox"><div class="m-flexgrow">商品总额</div> <div class="money-text"><sub>&yen;</sub><span><%= orderPrice %></span></div></div>
			<% if (deductionPrice>0) { %>	
				<div class="m-flexbox"><div class="m-flexgrow">优惠金额</div> <div class="money-text">-<sub>&yen;</sub><span><%= deductionPrice %></span></div></div>
			<% } %>
			<div class="hr"></div>
			<div class="m-flexbox"><div class="m-flexgrow">应付款：</div> <div class="item-feild-text realpaymonery"><sub>&yen;</sub><span><%= totalPrice %></span></div></div>
	   </div>
	</div>
	<% if (voucherData && orderPayStatus>0) { %>
		<div class="wechatlist">
		 <% voucherData.forEach(function(item){ %>
			 <% if(item.childitems){ %>
			   <% item.childitems.forEach(function(val){ %>
					<div class="gap-h1"></div>
					<div class="wrap-box">
							<div class="row-head">
								<div class="title"><%= val.goodsname %></div>
								<div class="m-view-status status-1" data-no="<%= val.voucherid %>" node-name="viewdetail">查看状态<i class="icon-right"></i></div>
							</div>
							<div class="hr"></div>
						<div class="wechat-box">
							<div class="wechat-img">
								<div id="voucher-<%= val.voucherid %>"><img src="<%= val.voucherimageurl %>"/></div>
							</div>
							<p class="voucher">凭证值：<%= val.voucherno %></p>
						</div>
					</div>
				<% }) %>
			<% }else{ %>
				<div class="gap-h1"></div>
				<div class="wrap-box">
						<div class="row-head">
							<div class="title"><%= voucherData[0].goodsname %></div>
							<div class="m-view-status status-1" data-no="<%= voucherData[0].voucherid %>" node-name="viewdetail">查看状态<i class="icon-right"></i></div>
						</div>
						<div class="hr"></div>
					<div class="wechat-box">
						<div class="wechat-img">
							<div id="voucher-<%= voucherData[0].voucherid %>"><img src="<%= voucherData[0].voucherimageurl %>"/></div>
						</div>
						<p class="voucher">凭证值：<%= voucherData[0].voucherno %></p>
					</div>
				</div>
			<% } %>
		 <% }) %>
		</div>
	<% } %>
    <div class="ordertime">下单时间  <%= placeTime %> </div>   
</div>
